<?PHP
session_start();
if (!(isset($_SESSION['myusername']) && $_SESSION['mypassword'] != '')) {
header ("Location: main_login.php");
}
?>

<html>
<head>
<META HTTP-EQUIV="Refresh" CONTENT="2; URL=safety.php">
</head>
<body>
Login Successful, forwarding in 2 secs
</body>
</html>